<script setup lang="ts">
import { inject } from 'vue';

const msg = inject('msg', '这是默认字体');
</script>
<template>
  <div class="sonson">{{ msg }}</div>
</template>
<style scoped>
.sonson {
  color: red;
  font-size: 20px;
  background-color: skyblue;
  padding: 10PX;
}
</style>